package com.ly.service.house;

import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;

import java.io.File;
import java.io.InputStream;

/**
 * 七牛云服务
 * @author ：LY
 * @date ：Created in 2020/11/12 21:45
 * @modified By：
 */
public interface IQiNiuService {
    /**
     * 文件上传方式
     * @param file
     * @return
     * @throws QiniuException
     */
    Response uploadFile(File file) throws QiniuException;

    /**
     * 字节流上传方式
     * @param inputStream
     * @return
     * @throws QiniuException
     */
    Response uploadFile(InputStream inputStream) throws  QiniuException;

    Response delete(String key) throws  QiniuException;
}
